import {
	mapState
} from "vuex";


export default {
	data() {
		return {
			actionShow: false,
			activeColor: "#24C68A",
		}
	},
	computed: {
		...mapState([]),
		actionTitle() {
			return this.$t('select')
		},
		actionList() {
			return [{
					name: this.$t('zh'),
					value: "zh"
				},
				{
					name: this.$t('en'),
					value: "en"
				}
			]
		}
	},
	onShow() {},
	methods: {
		language() {
			this.actionShow = true
		},
		actionClose() {
			this.actionShow = false
		},
		actionSelect(e) {
			this.$i18n.locale = e.value
		},
		navigateBack() {
			uni.navigateBack({
				delta: 1
			})
		}
	}
}